package com.happy.study.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("category_info")
public class CategoryEntity extends BaseEntity {

    @TableId("id")
    private Integer id;

    @TableField("categoryName")
    private String categoryName;

    @TableField("parentId")
    private Integer parentId;

    @TableField("createTime")
    private String createTime;

    @TableField("changeTime")
    private String changeTime;

    @TableField("isUsed")
    private Integer isUsed;

    public Integer getId () {
        return id;
    }

    public void setId (Integer id) {
        this.id = id;
    }

    public String getCategoryName () {
        return categoryName;
    }

    public void setCategoryName ( String categoryName ) {
        this.categoryName = categoryName;
    }

    public Integer getParentId () {
        return parentId;
    }

    public void setParentId ( Integer parentId ) {
        this.parentId = parentId;
    }

    public String getCreateTime () {
        return createTime;
    }

    public void setCreateTime (String createTime) {
        this.createTime = createTime;
    }

    public String getChangeTime () {
        return changeTime;
    }

    public void setChangeTime (String changeTime) {
        this.changeTime = changeTime;
    }

    public Integer getIsUsed () {
        return isUsed;
    }

    public void setIsUsed (Integer isUsed) {
        this.isUsed = isUsed;
    }

    @Override
    public String toString () {
        return "CategoryEntity{" +
                "id=" + id +
                ", categoryName='" + categoryName + '\'' +
                ", parentId=" + parentId +
                ", createTime='" + createTime + '\'' +
                ", changeTime='" + changeTime + '\'' +
                ", isUsed=" + isUsed +
                '}';
    }
}
